package com.cash.loan.modular.cash.transfer;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author Administrator
 * @Date 2018-09-30 14:26
 */
public class RecommendDto {

    @NotBlank(message = "名字不能为空")
    private String name;

    @NotEmpty(message = "栏目号不能为空")
    private Integer field;

    @NotEmpty(message = "产品id不能为空")
    private Integer productId;

    private String recommend;

    public RecommendDto() {
    }

    public RecommendDto(String name, Integer filed, Integer productId, String recommend) {
        this.name = name;
        this.field = filed;
        this.productId = productId;
        this.recommend = recommend;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getField() {
        return field;
    }

    public void setField(Integer field) {
        this.field = field;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getRecommend() {
        return recommend;
    }

    public void setRecommend(String recommend) {
        this.recommend = recommend;
    }
}
